<template>
  <view>
    <!-- 顶部自定义导航 -->
    <TnNavbar back-icon="" back-text="" home-icon="" fixed bg-color="#fff" :bottom-shadow="false">

    </TnNavbar>
    <view style="width: 95%;margin: 10px auto;box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;border-radius: 10px">
      <template v-if="randomNum === 1">
        <image :show-menu-by-longpress="true" src="https://seerforwdw.info/assets/4-CQXGZb1N.jpg" style="width: 100%;height:
        500px"/>
      </template>
      <template v-else>
        <image :show-menu-by-longpress="true" src="https://seerforwdw.info/assets/5-BPOiBsVy.jpg" style="width: 100%;height: 500px"/>
      </template>
    </view>
    <ad unit-id="adunit-514c0d1559d2aa70" bindload="adLoad" binderror="adError" bindclose="adClose"></ad>
  </view>
</template>

<script setup lang="ts">
    import {ref} from "vue";
    import TnNavbar from "../../uni_modules/tuniaoui-vue3/components/navbar/src/navbar.vue";
    uni.hideHomeButton()
    const randomNum = ref(1);
    randomNum.value = Math.floor(Math.random() * 2 + 1) - 1
</script>


<style scoped lang="scss">

</style>
